cmake_minimum_required(VERSION 3.5.0)
project(imgui)

set(CMAKE_CXX_STANDARD 17)

add_subdirectory(src)

target_include_directories(ogl-imgui PUBLIC include/imgui)
target_include_directories(ogl-imgui PUBLIC include)

if(WIN32)
set(DEP_PATH $ENV{__DEP__PATH__})
target_include_directories(ogl-imgui PUBLIC ${DEP_PATH}/glfw/include)
target_include_directories(ogl-imgui PUBLIC ${DEP_PATH}/glfw/deps)

endif()



if(UNIX)
set(DEP_PATH /usr/local)
endif()

set(CMAKE_INSTALL_INCLUDEDIR ${DEP_PATH})
set(CMAKE_INSTALL_LIBDIR ${DEP_PATH}/lib)

install(TARGETS ogl-imgui
        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

install(DIRECTORY include
        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
